package dao

import (
	"time"
)

// 这是 LiFreightTemplateChild 的全局公开dao对象
var LiFreightTemplateChildDao = liFreightTemplateChildDao{}

// 这是 li_freight_template_child表 的实体类
type LiFreightTemplateChild struct {
	Id                int       `json:"id" form:"id" v:"id"`                                                    // ID
	CreateBy          string    `json:"create_by" form:"create_by" v:"create_by"`                               // 创建者
	CreateTime        time.Time `json:"create_time" form:"create_time" v:"create_time"`                         // 创建时间
	DeleteFlag        bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`        // 删除标志 true/false 删除/未删除
	UpdateBy          string    `json:"update_by" form:"update_by" v:"update_by"`                               // 更新者
	UpdateTime        time.Time `json:"update_time" form:"update_time" v:"update_time"`                         // 更新时间
	Area              string    `json:"area" form:"area" v:"area"`                                              // 地址
	AreaId            string    `json:"area_id" form:"area_id" v:"area_id"`                                     // 地区ID
	ContinuedCompany  float64   `json:"continued_company" form:"continued_company" v:"continued_company"`       // 续重/续件
	ContinuedPrice    float64   `json:"continued_price" form:"continued_price" v:"continued_price"`             // 续费
	FirstCompany      float64   `json:"first_company" form:"first_company" v:"first_company"`                   // 首重/首件
	FirstPrice        float64   `json:"first_price" form:"first_price" v:"first_price"`                         // 运费
	FreightTemplateId string    `json:"freight_template_id" form:"freight_template_id" v:"freight_template_id"` // 店铺模板ID

}

// 注意:这是 LiFreightTemplateChild 的私有dao对象
type liFreightTemplateChildDao struct {
	Insert func(arg LiFreightTemplateChild) int                    //插入一条记录
	Update func(arg LiFreightTemplateChild) int                    //更新一条记录
	Delete func(arg LiFreightTemplateChild) int                    //删除一条记录
	Select func(arg LiFreightTemplateChild) LiFreightTemplateChild //获取一条记录
}
